﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using KPWeb.Class;

namespace KPWeb.StopkaStrony
{
    public partial class Error : KPPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!this.IsPostBack)
            {
                try
                {
                    //      Exception ex = Server.GetLastError();
                    if (Session["Error"] != null)
                    {
                        //    Exception baseEx = ex.GetBaseException();
                        //        if (baseEx != null)
                        //     {
                        this.lblMessage.Text = Session["Error"].ToString();


                        //            string sTemp2 = baseEx.ToString();
                        //           this.lblError.Text = sTemp2;
                        //       }
                    }
                    // GC.Collect();
                }
                catch
                {


                }

            }
        }
    }
}
